package com.tyk.bookstore.back.system.repository;

import com.tyk.bookstore.back.common.dal.mapper.IMapper;
import com.tyk.bookstore.back.system.model.dto.RouteDto;
import com.tyk.bookstore.back.system.model.entity.MenuDo;
import com.tyk.bookstore.back.system.model.query.MenuListQuery;
import com.tyk.bookstore.back.system.model.vo.MenuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuRepository extends IMapper<MenuDo> {

	List<RouteDto> selectAllGetRouteDto();

	List<RouteDto> selectGetRouteDtoListByUserId(@Param("userId") Long userId);

    List<MenuDo> findGetMenuListVo(@Param("query") MenuListQuery query);

    MenuVo selectGetMenuByIdVo(@Param("menuId") Long id);
}
